# Makefile for Pilot tutorial C and Fortran labs

# HPCVL global desktop; change to your local Pilot installation
PILOTHOME = /work/wgardner/pilot

CC = mpicc -intel
INCLUDES = -I$(PILOTHOME)/include
LIBS = -L$(PILOTHOME)/lib -lpilot -ljpeg
CFLAGS = -ljpeg

FC = mpif90 -intel
FFLAGS = -fpp -I$(PILOTHOME)/include
# LDFLAGS same as above

all: thumb

thumb: thumb.o jpegutil.o
	$(CC) $< $(LIBS) jpegutil.o -o $@

thumb.o: thumb.c
	$(CC) -c $< $(INCLUDES) -o $@

jpegutil.o: jpegutil.c jpegutil.h


clean:
	$(RM) thumb.o thumb jpegutil.o jpegutil
